﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Networking.Sockets;

namespace TakePhotoTogether.Communication
{
    public abstract class ConnectionChannel
    {
        public Action<byte[], int> OnPacketReceived;
        public Action OnConnectionDisposed;

        public abstract bool IsEnabled();

        public abstract Task ReadPacket();

        public abstract Task SendPacket(DataPacket packet);

        public abstract void Dispose();
    }
}
